<div class="row-content am-cf">
    <div class="row">
        <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
            <div class="widget am-cf">
                <div class="widget-head am-cf">
                    <div class="widget-title am-cf">当前级别列表</div>
                </div>
                <div class="widget-body am-fr">

                    <table class="am-table">
                        <thead>
                        <tr>
                            <th>代理级别</th>
                            <th>级别分佣</th>
                            <th>普通分佣</th>
                        </tr>
                        </thead>
                        <tbody>
                        <?php foreach ($agents as $agent): ?>
                            <tr>
                                <td><?= $agent['name'] ?></td>
                                <td><span class="am-badge am-badge-danger am-round"><?= $agent['level'] * 100 ?>%</span></td>
                                <td><span class="am-badge am-badge-warning am-round"><?= $agent['ordinary'] * 100 ?>%</span></td>
                            </tr>
                        <?php endforeach; ?>
                        </tbody>
                    </table>

                </div>
            </div>
        </div>
    </div>
</div>
